package codegenerator.billmenu.commonEnum;

public interface CommonEnum {

    // 数据字典枚举
    enum ContractManageDictType {
        AUDIT_HIERARCHY("contract_classes", "基建项目合同管理-合同类别");

        public String code;
        public String name;

        ContractManageDictType(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getName(String code) {
            ContractManageDictType mdt = getAssetsDictType(code);
            return mdt != null ? mdt.name : "";
        }

        public static ContractManageDictType getAssetsDictType(String code) {
            for (ContractManageDictType bs : ContractManageDictType.values()) {
                if (bs.code.equals(code)) return bs;
            }
            return null;
        }
    }
}
